Repository navigation
chore: add cross-platform development scripts - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a first-class cross-platform developer workflow for Windows, Ubuntu, and macOS.
This replaces the host-facing Bash-only scripts with a dependency-free Python task runner, adds native Visual Studio presets for Windows, provides environment bootstrap scripts for each supported host, and exercises Windows builds in CI.
Motivation
The existing project workflow assumed a Unix shell:
.shfiles directly;bootstrap-vcpkg.sh;.exefiles or Visual Studio configuration directories;As a result, a normal PowerShell/Visual Studio setup could not use the documented configure, format, lint, migration, smoke-test, or template-initialization workflows.
What changed
Cross-platform task runner
scripts/dev.pyas the common entry point for:bootstrap-vcpkg.baton Windows andbootstrap-vcpkg.shelsewhere.The Linux container entrypoint remains a shell script because it executes inside the Linux runtime image.
Windows CMake support
windows-debugandwindows-releaseconfigure, build, and test presets using Visual Studio 2022 and x64.windows-debugautomatically on Windows.Host environment setup
Add idempotent setup scripts:
scripts/setup-windows.ps1scripts/setup-ubuntu.shscripts/setup-macos.shDocker installation is deliberately opt-in because desktop installations may require interaction or a reboot, and Linux group changes require a new login.
CI and documentation
windows-latestGitHub Actions job that configures, builds, tests, and checks formatting.Developer impact
A fresh host can now prepare the core project environment with one native command:
bash scripts/setup-ubuntu.sh # or bash scripts/setup-macos.shAfter setup, the same task vocabulary works across platforms:
Unix users may use
python3; the Makefile remains available as an optional wrapper.Commit structure
chore: replace shell workflows with Python runnerbuild: add Visual Studio presetschore: add host environment setup scriptsci: verify Windows buildsdocs: document cross-platform workflowsValidation
Completed locally on Windows:
python -m py_compile scripts/dev.pyusing portable CPython 3.12.10;python scripts/dev.py --help;python scripts/dev.py format --check;git archive, including proto relocation;cmake --list-presets=all;git diff --check;A full local configure/build/test was not possible because this workstation does not currently have the Visual Studio C++ workload or an initialized vcpkg checkout. The new Windows CI job is intended to provide that end-to-end platform verification.